e = 1
i = 1000
fac = 1
for i in range(1, i + 1):
    e += 1 / (fac * i)
    fac = fac * i
print(e)